
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition template="/loginPageLayout.xhtml">
	<ui:define name="title">Cambiar Contraseña</ui:define>
	<ui:define name="content">
		<h:form>
			<!-- style="text-align:center" -->
			<p:panel style="align:center; margin:3% 20% 30% 20%;"
				header="Cambio Contraseña" footer="">

				<h:panelGrid columns="3">
					<h:outputLabel value="Vieja Clave" />
					<p:password value="#{login.passwordAux3}" id="pass" name="pass"
						label="pass" required="true" minLength="6" for="pass" color="red"></p:password>
					<h:message for="pass" errorClass="error" id="userError" />

					<h:outputLabel value="Nueva Clave" />

					<p:password minLength="6" id="passAux1"
						value="#{login.passwordAux1}" required="true" for="passAux1"
						color="red" />
					<h:message id="passAux1Error" for="passAux1" errorClass="error" />

					<h:outputLabel value="Repita Nueva Clave" />

					<p:password minLength="6" id="passAux2"
						value="#{login.passwordAux2}" required="true" for="passAux2"
						color="red" />
					<h:message id="passAux2Error" for="passAux2" errorClass="error" />


					<p:spacer height="5px" />
					<h:commandButton value="Recuperar" action="#{login.salvarPass}" />
					<p:spacer height="5px" />

					<p>
						<h:messages />
					</p>
				</h:panelGrid>
			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>
</html>